package quartz.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public abstract class BaseEntity {
  @Id
  private String id;

  @NotNull
  @CreatedDate
  private Date createdDate;

  @NotNull
  @LastModifiedDate
  private Date lastModifiedDate;
}
